define(function(require,exports,module){
	var aw = require("ajaxwrapper");
	var roomStatus = require("../store/roomStatus");
	var Form = require("form");
	var store =require("store");
	var enmu = require("enums");
	module.exports = {
		initComponent: function(params,widget){
			var form = new Form({
				parentNode: ".J-form",
				
      		 		model: {
				        id: "form",
				        items: [{
				            	name:"roomType.name",
				            	label:"房型",
				            	readonly:"true"
				            },{
				            	name:"code",
				            	label:"编号",
				            	readonly:"true"
				            },{
				            	name:"acreage",
				            	label:"面积",
				            	readonly:"true",
				            	
				            },{
				            	name:"orientation",
				            	label:"朝向",
				            	readonly:"true",
				            	options:enmu["com.eling.elcms.basedoc.model.Room.Orientation"],
				            },{
				            	name:"orgBuilding.name",
				            	label:"所在楼宇",
				            	readonly:"true"
				            },{
				            	name:"floors",
				            	label:"所在楼层",
				            	readonly:"true"
				            },{
					            name: "status",
					            type: "select",
					            validate:"required",
					            label: "请选房态",			        
					            options:enmu["com.eling.elcms.basedoc.model.Room.Status"],
					        }
				       ]}
			});
			widget.set("form",form);
		}
	};
});